package com.ethan.java8;

/**
 * @author ethan
 * create 2018-08-03 上午11:11
 * desc
 **/
public class Streams {
    public enum Status{
        OPEN,CLOSED
    };

    public static final class Taskd{
        private final Status status;
        private final Integer points;

        Taskd (final Status status ,final Integer points){
            this.status = status;
            this.points = points;
        }

        public Integer getPoints() {
            return points;
        }

        public Status getStatus() {
            return status;
        }

        @Override
        public String toString() {
            return String.format("[%s,%d]",status,points);
        }
    }
}
